package com.item.service;

import com.item.dao.PostCommentMapper;
import com.item.dao.model.PostComment;
import com.item.dao.model.PostCommentExample;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PostCommentService {
    @Autowired
    private PostCommentMapper postCommentMapper;

    private static final Logger logger = Logger.getLogger(PostCommentService.class);

    public int countByExample(PostCommentExample example) {
        return this.postCommentMapper.countByExample(example);
    }

    public PostComment selectByPrimaryKey(String id) {
        return this.postCommentMapper.selectByPrimaryKey(id);
    }

    public List<PostComment> selectByExample(PostCommentExample example) {
        return this.postCommentMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.postCommentMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(PostComment record) {
        return this.postCommentMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(PostComment record) {
        return this.postCommentMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(PostCommentExample example) {
        return this.postCommentMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(PostComment record, PostCommentExample example) {
        return this.postCommentMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(PostComment record, PostCommentExample example) {
        return this.postCommentMapper.updateByExample(record, example);
    }

    public int insert(PostComment record) {
        return this.postCommentMapper.insert(record);
    }

    public int insertSelective(PostComment record) {
        return this.postCommentMapper.insertSelective(record);
    }
}